Skip to content

feat: expose function for validation without running Vite#36

Merged
Julien-R44 merged 2 commits into
Julien-R44:mainfrom
aweebit:feature/validation-without-vite
May 25, 2025
Merged

feat: expose function for validation without running Vite#36
Julien-R44 merged 2 commits into
Julien-R44:mainfrom
aweebit:feature/validation-without-vite

Conversation

@aweebit

@aweebit aweebit commented May 22, 2025

Copy link
Copy Markdown
Contributor

Fixes #34

@Julien-R44 Julien-R44 force-pushed the feature/validation-without-vite branch from 30c5109 to fafb3b2 Compare May 25, 2025 22:07
@Julien-R44

Copy link
Copy Markdown
Owner

Thanks for the PR ! Just did some refactor

Also, no need to use Object.assign(process.env, env) -> loadAndValidateEnv will be responsible for it, but still returns the env mapping if need

@Julien-R44 Julien-R44 merged commit 47026f1 into Julien-R44:main May 25, 2025
5 checks passed
@aweebit

aweebit commented May 31, 2025

Copy link
Copy Markdown
Contributor Author

@Julien-R44 Big thanks! I've now replaced the old bulky workaround in my project with a loadAndValidateEnv call, and it works like a charm 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose validation function for scripts not bundled with Vite

2 participants